package com.sxhalo.fsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sxhalo.fsms.domain.FactArea;
import com.sxhalo.fsms.mapper.FactAreaMapper;
import com.sxhalo.fsms.service.IFactAreaService;

@Service
public class FactAreaServiceImpl implements IFactAreaService {

	@Autowired
	private FactAreaMapper mapper;

	@Override
	public Integer insertSelective(FactArea record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(FactArea record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public FactArea selectByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<FactArea> findWhereList(String where, String order) {
		return mapper.findWhereList(  where,  order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<FactArea> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length,  where,  order);
	}


	@Override
	public int getChildCount(String where, Integer parentId) {
		return mapper.getChildCount(where,parentId);
	}

	@Override
	public List<FactArea> findChildPagerList(Integer start, Integer length, String where, String order, Integer parentId) {
		return mapper.findChildPagerList(start, length,  where,  order,parentId);
	}

	@Override
	public String getAllParentNameByParentId(String where, Integer parentId) {
		return mapper.getAllParentNameByParentId(where,parentId);
	}
}
